import * as path from 'path';
let version="1.0.0";
let port: number = 3721;
let clientRoot: string = path.normalize(__dirname + '/../../');
//let filesPath: string = path.normalize(__dirname + '/../../../nsfiles/');//完成books逻辑后删除这个
let dataPath: string = path.normalize(__dirname + '/../../../data/');
let filesPath: string = path.normalize(__dirname + '/../../../data/files');
// let dirname = __dirname + '/../../';
// console.log("=============================Config constructor",clientRoot);
// if ((<any>process).resourcesPath) {//run in electron 或者用 process.noAsar
//     dirname = (<any>process).resourcesPath;
//     filesPath = path.normalize(dirname + '/nsfiles/');
// }
export{port,clientRoot,filesPath,dataPath};
// export class Config {
//     public static port: number = 3618;
//     // Root path of server
//     public static clientRoot: string = path.normalize(__dirname + '/../../');
//     public static filesPath: string = path.normalize(__dirname + '/../../nsfiles/');
// }